package day7;

import day5.chongwu.Pet;

/**
 * @author oldliu
 * @since 1.0
 */
public class Yuan extends Graphic{
    public static final double PI=3.14159;
    private double r;
    public Yuan(int r){
        this.r=r;
    }
    @Override
    public double area() {
        return PI*r*r;
    }

    @Override
    public double circle() {
        return 2* PI*r;
    }
}
